﻿package edu.mis.modules.type;
import com.jfinal.core.Controller;

import edu.mis.modules.type.TypeService;
import edu.mis.model.Type;

/**
 * 权限控制器
 *
 */
public class TypeController extends Controller {
	
	static TypeService service = new TypeService();
	
	
	public void index() {
		render("type.html");
	}
	
	public void list(){
		setAttr("data", service.findAllType());
		renderJson();  
	}

}




